package com.ionehe.cola.config.swagger;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author 2022/1/24 <a href="mailto:a@ionehe.com">skedison</a>
 */
@Configuration
@EnableSwagger2
public class SwaggerConfig extends BaseSwaggerConfig {
    @Value("${swagger.api.base-package}")
    private String apiBasePackage;

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage(apiBasePackage)
                .title("a@ionehe.com")
                .description("接口文档")
                .contactName("skedison")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}
